package cn.sunchis.demo.pvuv.ctrl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * PV/UV测试控制器
 * @Author 许亮
 * @Create 2018-6-29 14:34:08
 */
@RestController
@RequestMapping("/pvuv")
public class PvuvController {
	private void createSession(HttpServletRequest request) {
//		if (request.getSession() == null) {
//			request.getSession(true);
//		}
	}
	
	@RequestMapping(value="/view0", method=RequestMethod.GET)
	public String view0(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view0";
	}
	
	@RequestMapping(value="/view1", method=RequestMethod.GET)
	public String view1(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view1";
	}
	
	@RequestMapping(value="/view2", method=RequestMethod.GET)
	public String view2(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view2";
	}
	
	@RequestMapping(value="/view3", method=RequestMethod.GET)
	public String view3(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view3";
	}
	
	@RequestMapping(value="/view4", method=RequestMethod.GET)
	public String view4(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view4";
	}
	
	@RequestMapping(value="/view5", method=RequestMethod.GET)
	public String view5(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view5";
	}
	
	@RequestMapping(value="/view6", method=RequestMethod.GET)
	public String view6(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view6";
	}
	
	@RequestMapping(value="/view7", method=RequestMethod.GET)
	public String view7(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view7";
	}
	
	@RequestMapping(value="/view8", method=RequestMethod.GET)
	public String view8(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view8";
	}
	
	@RequestMapping(value="/view9", method=RequestMethod.GET)
	public String view9(HttpServletRequest request) {
		createSession(request);
		return "you are visting the view9";
	}
}
